﻿using System.ServiceModel;
using System.ServiceModel.Web;
using CoreLibrary.Service;
using WebService.Security;

namespace WebService.Pub {

    [ServiceContract]
    public interface ILogInServiceX {

        [OperationContract]
        [FaultContract(typeof(ServiceError))]
        [WebInvoke(BodyStyle      = WebMessageBodyStyle.WrappedRequest,
                   RequestFormat  = WebMessageFormat.Json,
                   ResponseFormat = WebMessageFormat.Json,
                   UriTemplate    = "/LogIn")]
        Session LogIn(string email, string password);


        [OperationContract]
        [FaultContract(typeof(ServiceError))]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest,
                   RequestFormat  = WebMessageFormat.Json,
                   ResponseFormat = WebMessageFormat.Json,
                   UriTemplate    = "/LogInWithPassport")]
        Session LogInWithPassport(string passport);

    }
}
